package com.csun.cmny.provider.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

@Data
@Table(name = "cn_omc_chongming_dwr_bloodpressure")
public class ChongmingDoctorWorkBloodPressure {

    /**
     * 老人血压记录ID
     */
    @Column(name = "blood_pressure_id")
    private Long bloodPressureId;

    /**
     * 设备ID
     */
    @Column(name = "device_id")
    private String deviceId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 老人ID
     */
    @Column(name = "oldman_id")
    private String oldmanId;

    /**
     * 病案号
     */
    @Column(name = "medical_record_no")
    private String medicalRecordNo;

    /**
     * 老人性别
     */
    @Column(name = "oldman_sex")
    private String oldmanSex;

    /**
     * 老人年龄
     */
    @Column(name = "oldman_age")
    private String oldmanAge;

    /**
     * 看护等级
     */
    @Column(name = "nursing_grade")
    private String nursingGrade;

    /**
     * 楼栋
     */
    @Column(name = "building_no")
    private String buildingNo;

    /**
     * 楼栋ID
     */
    @Column(name = "building_id")
    private String buildingId;

    /**
     * 房间号
     */
    @Column(name = "room_no")
    private String roomNo;

    /**
     * 房间ID
     */
    @Column(name = "room_id")
    private String roomId;

    /**
     * 床号
     */
    @Column(name = "bed_no")
    private String bedNo;

    /**
     *床位ID
     */
    @Column(name = "bed_id")
    private String bedId;

    /**
     * 检测时间
     */
    @Column(name = "detection_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date detectionTime;

    /**
     * 收缩压
     */
    @Column(name = "sbp")
    private String sbp;

    /**
     * 舒张压
     */
    @Column(name = "dbp")
    private String dbp;

    /**
     * 测量医生
     */
    @Column(name = "doctor")
    private String doctor;

    /**
     * 医生ID
     */
    @Column(name = "doctor_id")
    private String doctorId;



}
